Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
aws-dynamodb-lambda-trigger
Advanced tools
Cleans up the code you need to run a DynamoDB trigger on AWS Lambda.
var trigger = require('aws-dynamodb-lambda-trigger')
// regular lambda fn business here
exports.handler = function myLambdaTriggerForTableName(event, context) {
// register a handler for inserts
trigger.insert(event, context, function handleInsert(record, callback) {
console.log(record)
callback()
})
}
trigger.insert(event, context, handler)
register a handler for INSERT
trigger.modify(event, context, handler)
register a handler for MODIFY
trigger.remove(event, context, handler)
register a handler for REMOVE
trigger.all(event, context, handler)
register a handler for INSERT
, MODIFY
and REMOVE
trigger.save(event, context, handler)
register a handler for INSERT
, MODIFY
trigger.change(event, context, handler)
register a handler for INSERT
and REMOVE
In all cases the handler
is a function with the following signature:
function handleSave(record, callback) {
// do something with record and then callback node-style
// if an err is passed to the callback it will be passed to context.fail
callback(null, record)
}
var trigger = require('aws-dynamodb-lambda-trigger/lambda')
// runs on every record inserted
function handler(record, callback) {
callback()
}
exports.handler = trigger.insert(handler)
FAQs
clean dynamo triggers
The npm package aws-dynamodb-lambda-trigger receives a total of 5 weekly downloads. As such, aws-dynamodb-lambda-trigger popularity was classified as not popular.
We found that aws-dynamodb-lambda-trigger demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.